﻿using AutoMapper;
using KayakMes.Common.Dtos.ProcessDTO.Input;
using KayakMes.Common.Dtos.ProcessDTO.Output;
using KayakMes.Common.Dtos.TeamDTO.Input;
using KayakMes.Common.Dtos.TeamDTO.Output;
using KayakMes.Common.Dtos.ProductControlDTO.Input;
using KayakMes.Common.Dtos.ProductControlDTO.Output;
using KayakMes.ProcessManagement.Domain.Model;
using KayakMes.ProcessManagement.Domain.SchedulingModel;
using KayakMes.ProcessStepUp.Domain.Model;
using KayakMes.ProductControl.Domain.Entity;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using KayakMes.Common.Dtos.ProductionDTO.Input;
using KayakMes.ProcessStepUp.Domain.ProductionModel;
using KayakMes.Common.Dtos.ProductionDTO.Output;

namespace KayakMes.ProcessManagement.Application
{
    public class MesProfile:Profile
    {
        public MesProfile()
        {
            CreateMap<ProcessStepUpInput, ProcessStepUpModel>();
            CreateMap<ProcessStepUpModel, ProcessStepUpOutput>();
            CreateMap<ProcessStepUpOutput,ProcessStepUpModel>();
            CreateMap<TechnologicalFlowInput, TechnologicalFlowModel>();
            CreateMap<TechnologicalFlowModel, TechnologicalFlowOutput>();
            CreateMap<TechnologicalFlowOutput,TechnologicalFlowModel>();
            CreateMap<TeamTypeInput, TeamTypeModel>();
            CreateMap<TeamTypeModel, TeamTypeOutput>();
            CreateMap<TeamTypeOutput, TeamTypeModel>();
            CreateMap<TeamSetInput, TeamSetModel>();
            CreateMap<TeamSetModel, TeamSetOutput>();
            CreateMap<UpdateTeamSetInput, TeamSetModel>();
            //产品管理
            CreateMap<AddSpecificationInput, SpecificationModel>();
            CreateMap<SpecificationModel, SpecificationOutput>();
            CreateMap<SpecificationOutput, SpecificationModel>();
            //班组设置成员
            CreateMap<EmployeeInput, EmployeeModel>();
            CreateMap<EmployeeModel, EmployeeOutput>();

            //生产订单
            CreateMap<ProductionOrderInput, ProductionOrderModel>();
            CreateMap<ProductionOrderModel, ProductionOrderOutput>();
            CreateMap<UpdateProductionOrderInput, ProductionOrderModel>();
        }
    }
}
